package com.example.pc.updata;

import com.example.pc.updata.end.Guangchang;
import com.example.pc.updata.end.History;
import com.example.pc.updata.end.User;
import com.example.pc.updata.end.XingCheng;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by pc on 2018/3/20.
 */

public class AppInfo {

    public  static String PHONE = "";

    public  static int usertype = 1;


    public  static  List<User> users = new ArrayList<>();
    public  static  List<XingCheng> xingcheng = new ArrayList<>();
    public static User user;
    public static com.example.pc.updata.obj.User user2;
    public static List<Integer> bands = new ArrayList<>();

    public static List<Guangchang> bamyguangc = new ArrayList<>();
    public static List<History> history = new ArrayList<>();
    public static int jjId;
    public static List<Integer> banner_list = new ArrayList<>();


    public static boolean contentisphone(String phone) {
        String regExp1 = "^[0|1][0-9]{10}$";
        String regExp = "^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147)|(199)|(166)|(173))\\d{8}$";
        try {
            Pattern p = Pattern.compile(regExp); // 验证手机号
            Matcher m = p.matcher(phone);
            return m.matches();
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
    public  static String TYPE_TITEL = "";
    public  static boolean IS_IN_TYPE = false;
}